package net.xiangcaowuyu.springcloud.alibaba.seata.service;

import net.xiangcaowuyu.springcloud.entites.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 博客：https://www.xiangcaowuyu.net
 * Description:
 *
 * @Author: 香草物语
 * DateTime: 2021-07-25 20:29
 */
@FeignClient(value = "seata-storage-service")
public interface IStorageService {

    @PostMapping("/storage/decrease")
    public CommonResult storageDecrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);

}
